﻿--[[
   @brief    tool_box desc
   @author   jasonlli
   @version  1.0
   @date     2015-03-16
--]]

tool_box_desc = {
    module_name = 'tool_box',
    events = {
    {
            c_event = 
            {
                {
                    id  = ierd_tgp.game_library.K_PREUPDATE_PROCESS,
                    callback = "game_update_control.update_game_state_list"
                }
            },
            lua_event = 
            {
                {
                    id = tool_box_event.TOOL_BOX_LOAD_PAGE,
                    callback = 'tool_box_control.open_network_acc_page'
                },
                {
                    id = open_link_event.OPEN_LINK,
                    callback = 'tool_box_control.open_tool_box_pages'

                },
                {
                    id  = main_event.UPDATE_GAME_STATE,
                    callback = "game_update_control.update_game_state_list"
                },
                {
                    id  = startup_acc_event.PRELOAD_WINDOW_CLOSE_ON_TOOLBOX,
                    callback = "startup_speedup_control.on_preload_close"
                },
                {
                  id = tool_box_event.OPEN_REPAIR_GAME_SEL ,
                  callback = "tool_box_control.on_event_open_repair_game_sel"
                },
                {
                  id = tool_box_event.OPEN_UNINSTALL_GAME_SEL ,
                  callback = "tool_box_control.on_event_open_uninstall_game_sel"
                }
            },
            reg_service = {
                {
                    id = 'Svr_StartPreUpdateByDownloadMgr',
                    callback = "game_update_control.start_preupdate_game_ex"
                },
                {
                  -- 获取关联的可修复卸载游戏列表
                  -- data = { action : "repair|uninstall" , repair_games : [{game_id : x, name : "xxx" , support: true|false, is_main:true|false}, ... ] }
                  id = 'i_service_get_attach_game_sel_items',
                  callback = "tool_box_control.on_service_get_attach_game_sel_items"
                },
            },
            lua_file = 'tool_box\\control.lua'
        }
    }
};

desc_mgr.add(tool_box_desc);